<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>GtkSeparatorToolItem</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
<link rel="home" href="index.html" title="GTK+ 3 参考手册">
<link rel="up" href="MenusAndCombos.html" title="菜单、组合框和工具栏">
<link rel="prev" href="gtk3-GtkToolItemGroup.html" title="GtkToolItemGroup">
<link rel="next" href="gtk3-GtkToolButton.html" title="GtkToolButton">
<meta name="generator" content="GTK-Doc V1.18 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
<tr valign="middle">
<td><a accesskey="p" href="gtk3-GtkToolItemGroup.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
<td><a accesskey="u" href="MenusAndCombos.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
<th width="100%" align="center">GTK+ 3 参考手册</th>
<td><a accesskey="n" href="gtk3-GtkToolButton.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
</tr>
<tr><td colspan="5" class="shortcuts">
<a href="#gtk3-GtkSeparatorToolItem.synopsis" class="shortcut">Top</a>
                   | 
                  <a href="#gtk3-GtkSeparatorToolItem.description" class="shortcut">Description</a>
</td></tr>
</table>
<div class="refentry">
<a name="gtk3-GtkSeparatorToolItem"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="gtk3-GtkSeparatorToolItem.top_of_page"></a>GtkSeparatorToolItem</span></h2>
<p>GtkSeparatorToolItem — A toolbar item that separates groups of other
  toolbar items</p>
</td>
<td valign="top" align="right"></td>
</tr></table></div>
<div class="refsynopsisdiv">
<a name="gtk3-GtkSeparatorToolItem.synopsis"></a><h2>Synopsis</h2>
<pre class="synopsis">
#include &lt;gtk/gtk.h&gt;

struct              <a class="link" href="gtk3-GtkSeparatorToolItem.html#GtkSeparatorToolItem" title="struct GtkSeparatorToolItem">GtkSeparatorToolItem</a>;
<a class="link" href="gtk3-GtkToolItem.html#GtkToolItem" title="struct GtkToolItem"><span class="returnvalue">GtkToolItem</span></a> *       <a class="link" href="gtk3-GtkSeparatorToolItem.html#gtk-separator-tool-item-new" title="gtk_separator_tool_item_new ()">gtk_separator_tool_item_new</a>         (<em class="parameter"><code><span class="type">void</span></code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gtk3-GtkSeparatorToolItem.html#gtk-separator-tool-item-set-draw" title="gtk_separator_tool_item_set_draw ()">gtk_separator_tool_item_set_draw</a>    (<em class="parameter"><code><a class="link" href="gtk3-GtkSeparatorToolItem.html#GtkSeparatorToolItem" title="struct GtkSeparatorToolItem"><span class="type">GtkSeparatorToolItem</span></a> *item</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> draw</code></em>);
<a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            <a class="link" href="gtk3-GtkSeparatorToolItem.html#gtk-separator-tool-item-get-draw" title="gtk_separator_tool_item_get_draw ()">gtk_separator_tool_item_get_draw</a>    (<em class="parameter"><code><a class="link" href="gtk3-GtkSeparatorToolItem.html#GtkSeparatorToolItem" title="struct GtkSeparatorToolItem"><span class="type">GtkSeparatorToolItem</span></a> *item</code></em>);
</pre>
</div>
<div class="refsect1">
<a name="gtk3-GtkSeparatorToolItem.description"></a><h2>Description</h2>
<p>
A <span class="type">GtkSeparatorItem</span> is a <a class="link" href="gtk3-GtkToolItem.html#GtkToolItem" title="struct GtkToolItem"><span class="type">GtkToolItem</span></a> that separates groups of other
<a href="gtk3-GtkToolItem.html#GtkToolItem"><span class="type">GtkToolItems</span></a>. Depending on the theme, a <a class="link" href="gtk3-GtkSeparatorToolItem.html#GtkSeparatorToolItem" title="struct GtkSeparatorToolItem"><span class="type">GtkSeparatorToolItem</span></a> will
often look like a vertical line on horizontally docked toolbars.
</p>
<p>
If the <a class="link" href="gtk3-GtkToolbar.html#GtkToolbar" title="struct GtkToolbar"><span class="type">GtkToolbar</span></a> child property "expand" is <a href="../glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> and the property
<span class="type">"draw"</span> is <a href="../glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a>, a <a class="link" href="gtk3-GtkSeparatorToolItem.html#GtkSeparatorToolItem" title="struct GtkSeparatorToolItem"><span class="type">GtkSeparatorToolItem</span></a> will act as
a "spring" that forces other items to the ends of the toolbar.
</p>
<p>
Use <a class="link" href="gtk3-GtkSeparatorToolItem.html#gtk-separator-tool-item-new" title="gtk_separator_tool_item_new ()"><code class="function">gtk_separator_tool_item_new()</code></a> to create a new <a class="link" href="gtk3-GtkSeparatorToolItem.html#GtkSeparatorToolItem" title="struct GtkSeparatorToolItem"><span class="type">GtkSeparatorToolItem</span></a>.
</p>
</div>
<div class="refsect1">
<a name="gtk3-GtkSeparatorToolItem.details"></a><h2>Details</h2>
<div class="refsect2">
<a name="GtkSeparatorToolItem"></a><h3>struct GtkSeparatorToolItem</h3>
<pre class="programlisting">struct GtkSeparatorToolItem {
  GtkToolItem parent;
};
</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-separator-tool-item-new"></a><h3>gtk_separator_tool_item_new ()</h3>
<pre class="programlisting"><a class="link" href="gtk3-GtkToolItem.html#GtkToolItem" title="struct GtkToolItem"><span class="returnvalue">GtkToolItem</span></a> *       gtk_separator_tool_item_new         (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
<p>
Create a new <a class="link" href="gtk3-GtkSeparatorToolItem.html#GtkSeparatorToolItem" title="struct GtkSeparatorToolItem"><span class="type">GtkSeparatorToolItem</span></a>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the new <a class="link" href="gtk3-GtkSeparatorToolItem.html#GtkSeparatorToolItem" title="struct GtkSeparatorToolItem"><span class="type">GtkSeparatorToolItem</span></a>
</td>
</tr></tbody>
</table></div>
<p class="since">Since 2.4</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-separator-tool-item-set-draw"></a><h3>gtk_separator_tool_item_set_draw ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_separator_tool_item_set_draw    (<em class="parameter"><code><a class="link" href="gtk3-GtkSeparatorToolItem.html#GtkSeparatorToolItem" title="struct GtkSeparatorToolItem"><span class="type">GtkSeparatorToolItem</span></a> *item</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> draw</code></em>);</pre>
<p>
Whether <em class="parameter"><code>item</code></em> is drawn as a vertical line, or just blank.
Setting this to <a href="../glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> along with <a class="link" href="gtk3-GtkToolItem.html#gtk-tool-item-set-expand" title="gtk_tool_item_set_expand ()"><code class="function">gtk_tool_item_set_expand()</code></a> is useful
to create an item that forces following items to the end of the toolbar.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>item</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkSeparatorToolItem.html#GtkSeparatorToolItem" title="struct GtkSeparatorToolItem"><span class="type">GtkSeparatorToolItem</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>draw</code></em> :</span></p></td>
<td>whether <em class="parameter"><code>item</code></em> is drawn as a vertical line</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.4</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-separator-tool-item-get-draw"></a><h3>gtk_separator_tool_item_get_draw ()</h3>
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            gtk_separator_tool_item_get_draw    (<em class="parameter"><code><a class="link" href="gtk3-GtkSeparatorToolItem.html#GtkSeparatorToolItem" title="struct GtkSeparatorToolItem"><span class="type">GtkSeparatorToolItem</span></a> *item</code></em>);</pre>
<p>
Returns whether <em class="parameter"><code>item</code></em> is drawn as a line, or just blank. 
See <a class="link" href="gtk3-GtkSeparatorToolItem.html#gtk-separator-tool-item-set-draw" title="gtk_separator_tool_item_set_draw ()"><code class="function">gtk_separator_tool_item_set_draw()</code></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>item</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkSeparatorToolItem.html#GtkSeparatorToolItem" title="struct GtkSeparatorToolItem"><span class="type">GtkSeparatorToolItem</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>
<a href="../glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if <em class="parameter"><code>item</code></em> is drawn as a line, or just blank.</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.4</p>
</div>
</div>
<div class="refsect1">
<a name="gtk3-GtkSeparatorToolItem.see-also"></a><h2>See Also</h2>
<a class="link" href="gtk3-GtkToolbar.html#GtkToolbar" title="struct GtkToolbar"><span class="type">GtkToolbar</span></a>, <a class="link" href="gtk3-GtkRadioToolButton.html#GtkRadioToolButton" title="struct GtkRadioToolButton"><span class="type">GtkRadioToolButton</span></a>
</div>
</div>
<div class="footer">
<hr>
          Generated by GTK-Doc V1.18</div>
</body>
</html>